182d008d13ff5887c55a47e2648c7f48b0b44a1b,thng-resource-model/src/main/java/com/evrythng/thng/resource/model/core/ScopeResource.java,ScopeResource,equals,#Object#,58
Before Change
if (projects != null ? !projects.equals(that.projects) : that.projects != null) {
return false;
}
if (users != null ? !users.equals(that.users) : that.users != null) {
return false;
}
After Change
ScopeResource that = (ScopeResource) other;
if (projects != null && that.projects != null) {
if (projects.size() != that.projects.size() || !projects.containsAll(that.projects)){
return false;
}
}
if (projects != null && that.projects == null || projects == null && that.projects != null) {
return false;
}
if (users != null && that.users != null) {
if (users.size() != that.users.size() || !users.containsAll(that.users)){
return false;
}
}